ARM: introduce vgic_access_guest_memory()
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Thu, 6 Apr 2017 11:28:22 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 14 Jun 2017 18:38:37 +0000 (11:38 -0700)
commit1ba52a57247c33a09a88a52742611d5ffc8c6ed9
tree0ff1d6c9461fb6903db6fa2250dd1c750aa9ea59
parentfe7fa1332dabd9ce4e98f1f61f2fe9b6203007b3
ARM: introduce vgic_access_guest_memory()

This function allows to copy a chunk of data from and to guest physical
memory. It looks up the associated page from the guest's p2m tree
and maps this page temporarily for the time of the access.
This function was originally written by Vijaya as part of an earlier series:
https://patchwork.kernel.org/patch/8177251

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic.c
xen/include/asm-arm/vgic.h